package com.lds.config.center.client.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.Map;

@Data
@ConfigurationProperties(prefix = "config.center.client")
public class ConfigCenterClientProperties {
    private String cacheFileRootPath = "/opt/cache-config/";
    private long fixedDelayScheduled = 5 * 60 * 1000;

    private String url = "http://localhost:8081";

    /**
     * 缓存
     */
    private Long envId;
    private Long clusterId;
    private Long appId;
    private Map<String, Long> namespaceNameMap;

    /**
     * 配置
     */
    private String envName;
    private String clusterName;
    private String appName;
    private String namespaceNames;
}
